package com.zhfi.dataapply.schedule.reader.company;

import com.zhfi.dataapply.entity.data.po.company.ChangeInfoPO;
import com.zhfi.dataapply.schedule.companylist.CompanyListService;
import com.zhfi.dataapply.schedule.reader.AbstractPageReader;
import com.zhfi.dataapply.service.CVSourceUrlService;
import com.zhfi.dataapply.service.ForwardService;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ChangeInfoReader extends AbstractPageReader<ChangeInfoPO> {

    private static String URL_ID = "6.3";

    @Getter
    private String url;

    @Autowired
    private CVSourceUrlService cvSourceUrlService;

    @Autowired
    public ChangeInfoReader(ForwardService forwardService,
                             CompanyListService companyListService) {
        super(ChangeInfoPO.class, forwardService, companyListService);
    }

    protected void resetUrl() {
        this.url = cvSourceUrlService.getUrlById(URL_ID);
    }

}
